package com.bk.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 评论
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Comment implements Serializable {
    /**
     * 评论状态 0禁用 1启用
     */
    public static final Integer BAN_COMMENT = 0;
    public static final Integer START_COMMENT = 1;

    //评论id
    private Long id;
    //评论内容
    private String content;
    //评论者id
    private Long userId;

    //评论的帖子id
    private Long innovationId;

    //评论状态  0禁用 1启用
    private Integer status;

    //评论时间
    private LocalDateTime createTime;

}
